package com.we823.project.repository.service.repo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.we823.project.model.repo.MaterialSafeModel;
import com.we823.project.repository.dao.repo.MaterialSafeRepository;
import com.we823.project.repository.service.AbstractBaseService;

@Service("materialSafeService")
public class MaterialSafeService extends AbstractBaseService<MaterialSafeModel> {

	private MaterialSafeRepository materialSafeRepository;
	
	@Autowired
	public MaterialSafeService(MaterialSafeRepository materialSafeRepository) {
		super(materialSafeRepository);
		this.materialSafeRepository = materialSafeRepository;
	}

	public List<MaterialSafeModel> findBySafenumIsNotNull() {
		return materialSafeRepository.findBySafenumIsNotNull();
	}

}
